Release 10.1A: OpenEdge Development:
Progress 4GL Reference


NE or <> operator

Compares two expressions and returns a TRUE value if they are not equal.

Syntax

expression { NE | <> } expression 

expression

A constant, field name, variable name, or expression. The expressions on either side of the NE or must be of the same data type.

Example

This procedure displays information for all items that appear in the catalog. (The cat-page field is not equal to the Unknown value (?) or 0).

r-ne.p
FOR EACH item WHERE cat-page <> ? AND cat-page <> 0:
     DISPLAY item-num item-name cat-page
       WITH TITLE "Catalog Items" USE-TEXT.
END. 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095